package com.raports;

import com.wizardOther.*;
import com.appclient.ControlledScreen;
import com.appclient.ScreensController;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.layout.StackPane;

/**
 *
 * @author Sawior
 */
public class RaportMenuWrapperScreenController implements Initializable, ControlledScreen {

    private ScreensController myController;
    private RaportScreensFramework screensFramework;
    @FXML
    private StackPane showPanel;

    @Override
    public void initialize(URL url, ResourceBundle rb) {
        screensFramework = new RaportScreensFramework(this);
        showPanel.getChildren().addAll(screensFramework);
    }

    @Override
    public void setScreenParent(ScreensController screenParent) {
        myController = screenParent;
    }
    
    public void setRaportButtonsPanel() {
        screensFramework.getScreensController().setScreen(RaportScreensFramework.RAPORT_BUTTONS);
    }

    @FXML
    private void goToMain(ActionEvent event) {

    }
    
    public void setSecondBreadCrumbsText(String text) {
        myController.getMainPanelController().setSecondLevelText(text);
    }

    public ScreensController getMyController() {
        return myController;
    }

    public void setOtherButtonsShow(boolean b) {
        myController.getMainPanelController().setIsRaportMenuButtonsShow(b);
    }

}
